package com.allan.springboot_wms.resp;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class InvResp {
    private Integer id;

    private String name;

    private String specification;

    private Integer inventory;

    private BigDecimal purchasePrice;

    private BigDecimal amount;

    private BigDecimal sellingPrice;

    private Date datetime;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", 规格=").append(specification);
        sb.append(", 库存数量=").append(inventory);
        sb.append(", 进价=").append(inventory);
        sb.append(", 金额=").append(amount);
        sb.append(", 售价=").append(sellingPrice);
        sb.append(", 操作时间=").append(datetime);
        sb.append("]");
        return sb.toString();
    }
}
